<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <th:block th:include="include :: header('详情')" />
    <link rel="stylesheet " href="../static/css/projectAll/projectAllDetail.css " th:href="@{/css/projectAll/projectAllDetail.css}"/>
    <link rel="stylesheet " href="../static/css/projectAll/projectIndex.css" th:href="@{/css/projectAll/projectIndex.css}"/>
</head>

<body>
    <div class="container-div">
        <!-- <div class="tabsnav search-collapse">
            <ul class="nav_tabs">
                <li class="tab-item active">单位工程信息</li>
                <li class="tab-item">返回</li>
            </ul>
        </div> -->
        <div class="tabsbody ">
            <div class="tabsbody-item active">
                <form action="">
                    <table border="0" cellpadding="0" cellspacing="0" style="width: 80%;margin:0 auto">
                        <tbody>
                            <tr>
                                <td>
                                    <div class="page-title">
                                        <span>单位工程基本信息</span>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <table class="table table-bordered">
                                        <tbody>
                                        	<tr>
                                                <td class="tdTitle">项目名称</td>
                                                <td class="tdContent" colspan="4" th:text="${bpi}==null or ${bpi.projectName}==null ? ' ':${bpi.projectName}"></td>
                                            </tr>
                                            <tr>
                                                <td class="tdTitle">单位工程名称 </td>
                                                <td class="tdContent" th:text="${buei}==null or ${buei.engineeringName}==null ? ' ':${buei.engineeringName}"></td>
                                                <td class="tdTitle">工程造价(万元) </td>
                                                <td colspan="2" class="tdContent" th:text="${buei}==null or ${buei.engineeringCost}==null ? ' ':${buei.engineeringCost}"></td>
                                            </tr>
                                            <tr>
                                                <td class="tdTitle">单位工程编号</td>
                                                <td class="tdContent" colspan="4" th:text="${buei}==null or ${buei.unitSerialNumber}==null ? ' ':${buei.unitSerialNumber}"></td>
                                            </tr>
                                            <tr th:if="${isszfj=='false'}">
                                                <td class="tdTitle">建筑总面积(㎡)</td>
                                                <td class="tdContent" th:text="${buei}==null or ${buei.totalArea}==null ? ' ':${buei.totalArea}"></td>
                                            </tr>
                                            <tr th:if="${isszfj=='false'}">
                                            	<td class="tdTitle">地上建筑面积(㎡)</td>
                                                <td class="tdContent" th:text="${buei}==null or ${buei.upArea}==null ? ' ':${buei.upArea}"></td>
                                                <td class="tdTitle">地下建筑面积(㎡)</td>
                                                <td class="tdContent" colspan="2" th:text="${buei}==null or ${buei.downArea}==null ? ' ':${buei.downArea}"></td>
                                            </tr>
                                            <tr>
                                                <td class="tdTitle">是否有人防</td>
                                                <td class="tdContent" colspan="4" th:text="${buei}==null or ${buei.isDefend}==null ? ' ':(${buei.isDefend}=='0' ? '否':'是')"></td>
                                            </tr>
                                            <tr th:if="${isszfj=='false'}">
                                                <td class="tdTitle">总层数</td>
                                                <td class="tdContent" colspan="4" th:text="${buei}==null or ${buei.sumLayer}==null ? ' ':${buei.sumLayer}"></td>
                                            </tr>
                                            <tr th:if="${isszfj=='false'}">
                                                <td class="tdTitle">地上层数</td>
                                                <td class="tdContent" th:text="${buei}==null or ${buei.upLayer}==null ? ' ':${buei.upLayer}"></td>
                                                <td class="tdTitle">地下层数</td>
                                                <td class="tdContent" colspan="2" th:text="${buei}==null or ${buei.downLayer}==null ? ' ':${buei.downLayer}"></td>
                                            </tr>
                                            <tr th:if="${isszfj=='true'}">
                                                <td class="tdTitle">市政规模描述</td>
                                                <td class="tdContent" colspan="4" th:text="${buei}==null or ${buei.cityBuildingSize}==null ? ' ':${buei.cityBuildingSize}"></td>
                                            </tr>
                                            <tr>
                                                <td class="tdTitle">发改委附码</td>
                                                <td class="tdContent" colspan="4" th:text="${bpi}==null or ${bpi.projectCode}==null ? ' ':${bpi.projectCode}"></td>
                                            </tr>
                                            <tr>
                                            	<td class="tdTitle">发改批准文号</td>
                                                <td class="tdContent" th:text="${bpi}==null or ${bpi.approvalNum}==null ? ' ':${bpi.approvalNum}"></td>
                                                <td class="tdTitle">扫描件</td>
                                                <td class="tdContent" colspan="2" th:if="${bpi!=null && bpi.approvalNumImage!='' && bpi.approvalNumImage!=null}"><a style="color:#0026FF;" rel="noopener noreferrer" th:href="${bpi.approvalNumImage}" target="_blank">下载 </a></td>
                                                <td class="tdContent" colspan="2" th:if="${bpi==null || bpi.approvalNumImage=='' || bpi.approvalNumImage==null}" style="color:Gray;">未上传附件 </td>
                                            </tr>
                                            <tr>
                                                <td class="tdTitle">建设工程规划许可证号</td>
                                                <td class="tdContent" colspan="4"><a th:text="${bpi}==null or ${bpi.licenseNum}==null ? ' ':${bpi.licenseNum}" style="color:#0026FF;" rel="noopener noreferrer" th:href="${bpi.licenseNumImage}" target="_blank"></a></td>
                                            </tr>
                                            <tr>
                                                <td class="tdTitle">国土使用权证号</td>
                                                <td class="tdContent" colspan="4"><a th:text="${bpi}==null or ${bpi.landUseNum}==null ? ' ':${bpi.landUseNum}" style="color:#0026FF;" rel="noopener noreferrer" th:href="${bpi.landUseNumImage}" target="_blank"></a></td>
                                            </tr>
                                            <tr>
                                                <td class="tdTitle">施工图审查合格证号</td>
                                                <td th:if="${buepi==null || buepi.passBookNumForSG=='' || buepi.passBookNumForSG==null}" class="tdContent" colspan="4">
                                                	<a style="color:#0026FF;" href="#"></a>
                                                </td>
                                                <td th:if="${buepi!=null && buepi.passBookNumForSG!='' && buepi.passBookNumForSG!=null}" class="tdContent" colspan="4">
                                                	<a th:onclick="wdCertificate([[${buepi.passBookNumForSG}]])" th:text="${buepi.passBookNumForSG}" style="color:#0026FF;" href="#"></a>
                                                </td>
                                                <!-- <a th:onclick="wdCertificate([[${bpi.licenseNum}]])" style="color:#0026FF;">11111</a> -->
                                                <!-- <td colspan="2" class="tdContent"><a style="color:#0026FF;" th:href="'/condrawing/condrawing/detail?guid='+${cd.BuildLinkMan}">下载 </a></td> -->
                                            </tr>
                                            <tr>
                                                <td class="tdTitle">监督注册号</td>
                                                <td class="tdContent" colspan="4" th:text="${buepi}==null or ${buepi.supervisorRegNum}==null ? ' ':${buepi.supervisorRegNum}"></td>
                                            </tr>
                                            <tr>
                                                <td class="tdTitle">施工许可证号</td>
                                                <td th:if="${bcp==null || bcp.constructPermitNum=='' || bcp.constructPermitNum==null}" class="tdContent" colspan="4">
                                                	<a style="color:#0026FF;" href="#"></a>
                                                </td>
                                                <td th:if="${bcp!=null && bcp.constructPermitNum!='' && bcp.constructPermitNum!=null}" class="tdContent" colspan="4">
                                                	<a th:onclick="consturctionCert([[${bcp.guid}]])" th:text="${bcp.constructPermitNum}" style="color:#0026FF;" href="#"></a>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="tdTitle">建设单位</td>
                                                <td class="tdContent" th:text="${bcp}==null or ${bcp.constructUnit}==null ? ' ':${bcp.constructUnit}"></td>
                                                <td class="tdTitle">项目负责人</td>
                                                <td class="tdContent" colspan="2" th:text="${bcp}==null or ${bcp.buildUnitProjectLeader}==null ? ' ':${bcp.buildUnitProjectLeader}"></td>
                                            </tr>
                                            <tr>
                                                <td class="tdTitle">勘察单位</td>
                                                <td class="tdContent" th:text="${buepi}==null or ${buepi.surveyUnit}==null ? ' ':${buepi.surveyUnit}"></td>
                                                <td class="tdTitle">勘察负责人</td>
                                                <td class="tdContent" colspan="2" th:text="${buepi}==null or ${buepi.surveyMaster}==null ? ' ':${buepi.surveyMaster}"></td>
                                            </tr>
                                            <tr>
                                                <td class="tdTitle">设计单位</td>
                                                <td class="tdContent" th:text="${buepi}==null or ${buepi.designUnit}==null ? ' ':${buepi.designUnit}"></td>
                                                <td class="tdTitle">设计负责人</td>
                                                <td class="tdContent" colspan="2" th:text="${buepi}==null or ${buepi.designLinkMaster}==null ? ' ':${buepi.designLinkMaster}"></td>
                                            </tr>
                                            <tr>
                                                <td class="tdTitle">施工图审查单位</td>
                                                <td class="tdContent" th:text="${buepi}==null or ${buepi.constructionDwUnit}==null ? ' ':${buepi.constructionDwUnit}"></td>
                                                <td class="tdTitle">审查负责人</td>
                                                <td class="tdContent" colspan="2" th:text="${buepi}==null or ${buepi.constructionDwMaster}==null ? ' ':${buepi.constructionDwMaster}"></td>
                                            </tr>
                                            <tr>
                                                <td class="tdTitle">施工总承包单位</td>
                                                <td class="tdContent" th:text="${bcp}==null or ${bcp.totalCompany}==null ? ' ':${bcp.totalCompany}"></td>
                                                <td class="tdTitle">项目负责人</td>
                                                <td class="tdContent" colspan="2" th:text="${bcp}==null or ${bcp.consUnitResponsePerson}==null ? ' ':${bcp.consUnitResponsePerson}"></td>
                                            </tr>
                                            <tr>
                                                <td class="tdTitle">监理单位</td>
                                                <td class="tdContent" th:text="${buepi}==null or ${buepi.supervisionUnit}==null ? ' ':${buepi.supervisionUnit}"></td>
                                                <td class="tdTitle">总监理工程师</td>
                                                <td class="tdContent" colspan="2" th:text="${buepi}==null or ${buepi.supervisionMaster}==null ? ' ':${buepi.supervisionMaster}"></td>
                                            </tr>
                                            <tr>
                                                <td class="tdTitle">监督人员</td>
                                                <td class="tdContent" colspan="4" th:text="${buepi}==null or ${buepi.supervisorMan}==null ? ' ':${buepi.supervisorMan}"></td>
                                            </tr>
                                            <tr>
                                                <td class="tdTitle">单位工程状态</td>
                                                <td class="tdContent" colspan="4" th:text="${buei}==null or ${buei.unitEngineeringState}==null ? ' ':${buei.unitEngineeringState}"></td>
                                            </tr>
                                        </tbody>
                                    </table>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </form>
            </div>
            <div class="tabsbody-item"></div>
        </div>

    </div>

    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
    var prefix = ctx + "project/projectAll";
    
        $(document).ready(function () {
        	$('.nav_tabs li').each(function(index){
        		if($(this).hasClass("active")){
        			//$.operate.get(prefix+"/detaila");
        			var index = $(this).index();
        			$(".tabsbody .tabsbody-item").eq(index).show().siblings().hide();
        		}
        	})
            $('.nav_tabs li').click(function () {
                $(this).addClass('active').siblings().removeClass('active');
                var index = $(this).index();
                var textname = $(this).text();
               if($(this).text() == '返回'){
            	   window.history.back(-1);
               };
           });
        });
        
        function wdCertificate(id, width, height){
            	var _url = "/condrawing/condrawing/wdCertificate/"+id;
            	var options = {
       				title: "详细",
       				width: width,
       				height: height,
       				url: _url,
       				skin: 'layui-layer-gray', 
       				btn: ['关闭'],
       				yes: function (index, layero) {
       	                layer.close(index);
                    }
       			};
            	$.modal.openOptions(options);
        }
        
        function consturctionCert(id, width, height){
        	var _url = "/conpermit/reviewrecord/certificateDetail/"+id;
        	var options = {
   				title: "详细",
   				width: width,
   				height: height,
   				url: _url,
   				skin: 'layui-layer-gray', 
   				btn: ['关闭'],
   				yes: function (index, layero) {
   	                layer.close(index);
                }
   			};
        	$.modal.openOptions(options);
    }
    </script>
</body>

</html>